<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #id1{
            width: 960px;
            height: 40px;
            background-color: #55a8ea;
        }
        .class1{
            background-color: #00619f;
            width: 100px;
            height: 40px;
            float: left;
            font-family: "微软雅黑";
            color: white;
            text-align: center;
            line-height:40px;
        }
        .class2{
            position: relative;
            width: 100px;
            height: 40px;
            float: left;
            font-size: 14px;
            font-family: "微软雅黑";
            color: white;
            text-align: center;
            line-height:40px;
        }
        #id1>.class2>img{
            position: absolute;
            top: -8px;
        }
    </style>
</head>
<body>
    <div id="id1">
        
        <div class="class1">首页</div>
        <div class="class2">网站建设</div>
        <div class="class2">程序开发</div>
        <div class="class2">网络营销</div>
        <div class="class2"> <img src="./new.png" alt="">企业VI</div>
        <div class="class2">案例演示</div>
        <div class="class2">联系我们</div>
    </div>
</body>
</html>